package com.im.imservice.message;


import com.alibaba.fastjson.JSON;
import com.im.imservice.dto.RequestInfo;


public class RequestService {

    /**
     * 根据客户端的请求生成 Client
     *
     * @param request 例如 {id:1;rid:21;token:'43606811c7305ccc6abb2be116579bfd'}
     * @return
     */
    public static RequestInfo clientRegister(String request) {
       return JSON.parseObject(request, RequestInfo.class);
    }

}
